package com.objetdirect.gwt.umldrawer.client;

import com.google.gwt.user.client.History;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class HomeText {

	private VerticalPanel text = new VerticalPanel();
	private Label header1 = new Label();
	private Label header2 = new Label();
	private Label header3 = new Label();
	private Label header4 = new Label();
	private Label text1 = new Label();
	private Label text2 = new Label();
	private Label text3 = new Label();
	private Label text4 = new Label();
	private HTML text4_ = new HTML(
			"4- Activity diagram<p>5- Use Case diagram</p>");
	private Label text5 = new Label();
	private Label text6 = new Label();

	public VerticalPanel getText() {

		header1.setStyleName("homePageHeaders");
		header1.setText("UML Software by Online-ProDesUML - Create and share a class diagram, sequence diagram, or any UML model");

		text1.setStyleName("homePageText");
		if (History.getToken().equals("Home")) {
			text1.setText("It's easy to model UML (Unified Modeling Language) with this free UML software. "
					+ "Just drag and drop from a library of shapes to show any UML "
					+ "diagram needed to model a system.");
		} else {
			text1.setText("It's easy to model UML (Unified Modeling Language) with this free UML software. "
					+ "Just drag and drop from a library of shapes to show any UML "
					+ "diagram needed to model a system. Since no single diagram can model a system completely, "
					+ "the free UML diagram editor makes it easy to add more diagrams as you need them.");
		}

		header2.setStyleName("homePageHeaders");
		header2.setText("Create, Share and Collaborate with Free UML Software");

		text2.setStyleName("homePageText");
		text2.setText("1- Class diagram");

		text3.setStyleName("homePageText");
		text3.setText("2- Object diagram");

		text4.setStyleName("homePageText");
		text4.setText("3- Sequence diagram");

		text4_.setStyleName("homePageText");

		header3.setStyleName("homePageHeaders");
		header3.setText("Our UML Editor Makes it Easy");

		text5.setStyleName("homePageText");
		if (History.getToken().equals("Home")) {
			text5.setText("Show structural (static), behavioral (dynamic) and implementation characteristics "
					+ "the shape and connector libraries in the free UML diagram software make it easy. ");
		} else {
			text5.setText("Show structural (static), behavioral (dynamic) and implementation characteristics "
					+ "the shape and connector libraries in the free UML diagram software make it easy. "
					+ "A class diagram tool, sequence diagram tool, and all around free UML diagram tool all-in-one, "
					+ "Online-ProDesUML enables you to combine a class diagram, sequence diagram, or any combination"
					+ " of UML diagrams to show a design view, process view, component view, deployment view, or use case view with ease.");
		}

		header4.setStyleName("homePageHeaders");
		header4.setText("Collaborate with Anyone");

		text6.setStyleName("homePageText");
		text6.setText("Free online software enables you to share and collaborate on your class diagram, "
				+ "sequence diagram, or other UML diagram with others, regardless of PC platform, "
				+ "and without having to install anything.");

		text.add(header1);
		text.add(text1);
		text.add(header2);
		text.add(text2);
		text.add(text3);
		text.add(text4);
		text.add(text4_);
		text.add(header3);
		text.add(text5);
		text.add(header4);
		text.add(text6);
		return text;
	}
}
